<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>Dinas Peternakan Kabupaten Tapin</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Avant" />
	<meta name="author" content="The Red Team" />

	<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600' rel='stylesheet' type='text/css' />
	<link href="<?php echo base_url(); ?>assets/css/styles.min.css" rel='stylesheet' type='text/css' />

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<body class="focusedform">

		<div class="verticalcenter">
			<img src="<?php echo base_url(); ?>assets/img/logo-big.png" alt="Logo" class="brand" />
			<div class="panel panel-primary">
				<div class="panel-body">
					<h4 class="text-center" style="margin-bottom: 25px;">Masuk</h4>
					<div class="container">
						<?php if (validation_errors()) { ?>
						<div class="alert alert-dismissable alert-danger">
							<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
							<h4>Terjadi Kesalahan!</h4>
							<?php echo validation_errors(); ?>
						</div>
						<?php } ?>
						<?php if ($this->session->flashdata('result_login')) { ?>
						<div class="alert alert-dismissable alert-danger">
							<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
							<h4>Terjadi Kesalahan!</h4>
							<?php echo $this->session->flashdata('result_login'); ?>
						</div>
						<?php } ?>
					</div>

					<?php echo form_open('login/do_login', 'id="loginform" class="form-horizontal"'); ?>
					<div class="form-group">
						<label for="email" class="control-label col-sm-4" style="text-align: left;">Username</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" id="username" placeholder="Username" name="username" />
						</div>
					</div>
					<div class="form-group">
						<label for="password" class="control-label col-sm-4" style="text-align: left;">Password</label>
						<div class="col-sm-8">
							<input type="password" class="form-control" id="password" placeholder="Password" name="password" />
						</div>
					</div>
				</div>
				<div class="panel-footer">
					<button class="btn btn-primary btn-block" type="submit">Login</button> 
				</div>
				<?php echo form_close(); ?>
			</div>
		</div>
		<script type='text/javascript' src='<?php echo base_url(); ?>assets/js/jquery-1.10.2.min.js'></script> 
		<script type='text/javascript' src='<?php echo base_url(); ?>assets/js/jqueryui-1.10.3.min.js'></script> 
		<script type='text/javascript' src='<?php echo base_url(); ?>assets/js/bootstrap.min.js'></script> 
		<script type='text/javascript' src='<?php echo base_url(); ?>assets/demo/demo-alerts.js'></script> 
	</body>


	</html>
